import os

# 设置Tensorflow的运行日志等级为2--Warning
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf

if __name__ == '__main__':
    # 生成一个全0的张量
    o1 = tf.ones(3)
    print(o1)
    o2 = tf.ones((4, 3))
    print(o2)
    o3 = tf.ones((5, 4, 3))
    print(o3)
    
